﻿using CI.Organism;
using NUnit.Framework;

namespace Mesopotamia.UnitTests.Organism
{
    [TestFixture]
    public class LocationTests
    {
        private ILocation _location;
        private float x = 1;
        private float y = 2;
        private float z = 3;
        private float xRadius = 4;
        private float yRadius = 5;
        private float zRadius = 6;

        /// <summary>
        /// this test just makes sure what we set the xyz to in the constuctor gets set
        /// </summary>
        [Test]
        public void CtorXZYTrue()
        {
            _location = new CI.Organism.Location(x, y, z);

            Assert.AreEqual(x, _location.XAxis, "X axis value incorrect");
            Assert.AreEqual(y, _location.YAxis, "Y axis value incorrect");
            Assert.AreEqual(z, _location.ZAxis, "Z axis value incorrect");
        }

        /// <summary>
        /// this test just makes sure what we set the xyz to in the constuctor gets set
        /// also the radius values get set too
        /// </summary>
        [Test]
        public void CtorXZYXRYRZR()
        {
            _location = new CI.Organism.Location(x, y, z, xRadius, yRadius, zRadius);

            Assert.AreEqual(x, _location.XAxis, "X axis value incorrect");
            Assert.AreEqual(y, _location.YAxis, "Y axis value incorrect");
            Assert.AreEqual(z, _location.ZAxis, "Z axis value incorrect");

            Assert.AreEqual(xRadius, _location.XRadius, "X Radius value incorrect");
            Assert.AreEqual(yRadius, _location.YRadius, "Y Radius value incorrect");
            Assert.AreEqual(zRadius, _location.ZRadius, "Z Radius value incorrect");
        }



    }
}